<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" language="JavaScript">
  <xsl:template match="tree">
    <xsl:apply-templates select="./treeitem" />
  </xsl:template>
  <xsl:template match="treeitem">
    <div onselectstart="return false" ondragstart="return false">
      <xsl:attribute name="image">/images/report/mnu_rArrow.gif</xsl:attribute>
      <xsl:attribute name="imageOpen">/images/report/mnu_rArrow.gif</xsl:attribute>
      <xsl:attribute name="open">false</xsl:attribute>
      <xsl:attribute name="grpid">
        <xsl:value-of select="@grpid" />
      </xsl:attribute>
      <xsl:attribute name="grpguid">
        <xsl:value-of select="@grpguid" />
      </xsl:attribute>
      <xsl:attribute name="grpcname">
        <xsl:value-of select="@grpcname" />
      </xsl:attribute>
      <xsl:choose>
        <xsl:when expr="depth(this) &gt; 2">
          <xsl:attribute name="STYLE">padding-left: 20px;cursor: hand;display: none;</xsl:attribute>
        </xsl:when>
        <xsl:otherwise>
          <xsl:attribute name="STYLE">padding-left:0px;cursor: hand;</xsl:attribute>
        </xsl:otherwise>
      </xsl:choose>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="middle" onclick="window.event.cancelBubble = true;clickOnEntity(this.parentElement.parentElement.parentElement.parentElement);">
            <img border="0" id="image">
              <xsl:attribute name="SRC">/images/report/mnu_rArrow.gif</xsl:attribute>
            </img>
          </td>
          <td valign="middle" nowrap="true" onclick="onTrClick(this)" oncontextmenu="onTrClick(this);showMenu(this);return false;">
            <xsl:attribute name="STYLE">padding-left: 7px;font-family: Verdana;font-size: 11px;font-color: black;</xsl:attribute>
            <xsl:value-of select="@grpcname" />
          </td>
        </tr>
      </table>
      <xsl:apply-templates select="./treeitem" />
    </div>
  </xsl:template>
</xsl:stylesheet>